package Dispatcher;

/**
 * Receives the destination from dispatcher and prints it out
 * @author Varun Maryada, Sanat Dixit, Steve Tannahill
 *
 */
public class SendElevatorRequestThread extends Thread{
	
	private int dest;
	private GroupDispatcher gd;
	
	public SendElevatorRequestThread(int destination, GroupDispatcher gd) {
		this.gd = gd;
		this.dest = destination;
	}

	@Override
	public void run() {
		if (gd.elevators.size() > 0){
			gd.elevators.get(0).println("Destination: "+ dest);
		}
	}
}
